package com.virtual.service.impl;

import com.virtual.dao.MarketDAO;
import com.virtual.pojo.MarketDo;
import com.virtual.service.MarketService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MarketServiceImpl implements MarketService {

    @Autowired
    private MarketDAO dao;

    @Override
    public int insertOne(MarketDo marketDo) {
        return dao.insertOne(marketDo);
    }

    @Override
    public int delete(int id) {
        return dao.delete(id);
    }

    @Override
    public List<MarketDo> findLimit(int limit) {
        return dao.findLimit(limit);
    }
}
